import java.io.*;

public class D9293 {


    public static void main(String[] args) throws IOException {

        File shuzi = new File("d:\\400个随机数.txt");
        FileReader fr = new FileReader(shuzi);
        BufferedReader br = new BufferedReader(fr);
        String s;
        int he = 0;
        while ((s = br.readLine())!=null) {
             String[] shuzu = s.split(" ");
            for (int i = 0; i <shuzu.length ; i++) {
                if (Integer.valueOf(shuzu[i]) %2 ==0){
                    he+=Integer.valueOf(shuzu[i]);

                }
            }

        }
        System.out.println(he);
        }
}